import time 

def song():
    while True:
        print('[+]songing')
        time.sleep(0.1)
        yield

def dance():
    while True:
        print('[+]dacneing')
        time.sleep(0.1)
        yield

def main():
    s = song()
    d = dance()
    while True:
        # s.__next__()
        # d.__next__()
        next(s)
        next(d)

if __name__ == '__main__':
    main()